package com.example.ecommerce.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ecommerce.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper extends BaseMapper<Order> {
    @Select("SELECT * FROM e_order WHERE uid = #{uid} ORDER BY order_time DESC")
    List<Order> selectByUid(Long uid);
}
